package formbeans;

import java.util.ArrayList;
import java.util.List;

import org.mybeans.form.FormBean;

public class MultipleSelectionQuestionForm extends FormBean {

	private String[] choice;
	
	public String[] getChoice() {
		return choice;
	}

	public void setChoice(String[] choice) {
		this.choice = choice;
	}
	
	public List<String> checkMultipleSelectionQuestionFormErrors(){
		List<String> errors = new ArrayList<String>();
		
		if (choice == null) {
			errors.add("Invalid choice (null)");
		}
		return errors;
	}
}